$(document).ready(function(){
	$('#txtpw1').live('focusout', function() {
			var pw = $("#txtpw").val();
			var pw1 = $("#txtpw1").val();
			if(pw != pw1)
			{
				$('#errormsg').hide();
				var msg = 'Password does not match';
				$('input[type=submit]').attr("disabled", "disabled");
			}
			else
			{
				var msg = '';
				$('input[type=submit]').attr("disabled", "");
			}
			$("#errormsg").html("<span style='font-size:11px; font-family: Tahoma; color:#FF0000'>" + msg + "</span>").show();
        });
    
 
});